const xlsx = require("node-xlsx");

module.exports = (req, res, next)=>{

  // 将数据打包成文件
  const file = xlsx.build([{name: "工作表1", data: [[
    "username","password","nickname","name","tel","age","sex","power","job","teamId"
  ]] }]);
  // 将文件信息，响应给前端
  res.write(file);
  res.end()
  
}